<style>
	.shuxing .layui-form-item .layui-form-label:nth-child(2){
		width: 400px;
		text-align: left;
	}
	.shuxing .layui-form-item{
		margin-bottom: 0px;
	}
</style>
<form class="layui-form layui-col-md11" lay-filter="tpl_goods{$goods_sign}" action="{:url('Goods/saveDataHenan')}">
	<input type="hidden" name="goods_sign" class="layui-input" />
	<input type="hidden" name="goods_id" class="layui-input" />
	<div class="layui-form-item">
		<input type="hidden" name="category_sign1" />
		<input type="hidden" name="category_sign2" />
		<input type="hidden" name="category_sign3" />
		<label class="layui-form-label">产品分类</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="category_name" readonly="" class="layui-input" />
		</div>
		
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">品牌</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="brand_sign" readonly=""class="layui-input" />
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品名称</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_name" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">子标题</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<input type="text" name="goods_son_name"  placeholder="请输入商品子标题" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品型号</label>
		<div class="layui-input-inline">
			<input type="text" name="goods_model" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
		<div class="layui-form-mid layui-word-aux" style="padding-top: 4px!important;">
			<button class="layui-btn layui-btn-normal layui-btn-sm chk_goods_model" type="button">验证型号</button>
		</div>
		<div class="layui-form-mid layui-word-aux">
			
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品编号</label>
		<div class="layui-input-inline">
			<input type="text" name="goods_sku" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品单位</label>
		<div class="layui-input-inline">
			<input type="text" name="goods_unit" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">关键词</label>
		<div class="layui-input-block layui-col-md8 margin-left0 ">
			<input type="text" name="goods_keywords" placeholder="使用','分割" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">描述</label>
		<div class="layui-input-block layui-col-md8 margin-left0">
			<textarea name="goods_intro" class="layui-textarea"></textarea>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">商品图片</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list layui-upload-list-goods item_container" id="layui-upload-list{$goods_sign}">
					<ul>
						
					</ul>
				</div>
				<div class="layui-upload-drag goods_pictures_upload" id="goods_pictures_upload{$goods_sign}">
					<i class="layui-icon layui-icon-upload"></i>
					<p>点击或拖拽上传</p>
				</div>
				<div style="clear: both;">

				</div>
			</blockquote>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">销售属性</label>
			<div class="layui-input-block">
				<blockquote class="layui-elem-quote layui-quote-nm layui-form-pane" id="sale_attr{$goods_sign}">
					<div class="view_box"></div>
					<button type="button" id="sale_attr_pop_down{$goods_sign}" class="layui-btn layui-btn-normal layui-btn-sm"><i class="layui-icon layui-icon-add-1"></i>新增属性</button>
				</blockquote>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">产品报价</label>
			<div class="layui-input-block">

				<blockquote class="layui-elem-quote layui-quote-nm layui-form-pane" id="sale_spu{$goods_sign}">

				</blockquote>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">配件报价</label>
			<div class="layui-input-block">
		
				<blockquote class="layui-elem-quote layui-quote-nm" id="accessory_spu{$goods_sign}">
		
				</blockquote>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">服务报价</label>
			<div class="layui-input-block">
				<blockquote class="layui-elem-quote layui-quote-nm" id="service_spu{$goods_sign}">
		
				</blockquote>
			</div>
		</div>
		<div class="layui-form-item shuxing">
			<label class="layui-form-label">商品属性</label>
			<div class="layui-input-block">
				<blockquote class="layui-elem-quote layui-quote-nm" id="goods_attr{$goods_sign}">
					请先选择分类
				</blockquote>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">引用属性</label>
			<div class="layui-input-inline">
				<input type="checkbox" lay-text="是|否" lay-filter="quote_option" lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">详细信息</label>
			<div class="layui-input-block">
				<textarea name="goods_content" id="goods_content{$goods_sign}"></textarea>
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">商品重量</label>
			<div class="layui-input-inline layui-input-number">
				<input type="number" value="0" name="weight" lay-verify="required|number" placeholder="" autocomplete="off" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">单位：克</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">是否包邮</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_shopping" lay-text="是|否" checked lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item" style="display: none;">
			<label class="layui-form-label">商品类型</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_real" lay-text="实物|虚拟" checked lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">是否需要安装</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_install" lay-text="需要|不需要" lay-skin="switch">
			</div>
		</div>
		<div class="layui-form-item">
			<input type="hidden" name="last_sale_state" />
			<label class="layui-form-label">销售状态</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="sale_state" lay-filter="push_sale_state" lay-text="销售|下架" checked lay-skin="switch">
			</div>
		</div>
		{if condition="$get_site['site_name'] EQ '主站'"}
		<div class="layui-form-item">
			<label class="layui-form-label">分站采集</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="is_copy" lay-text="可采集|不可采集" checked lay-skin="switch">
			</div>
		</div>
		{if condition="$goods_id NEQ ''"}
		<div class="layui-form-item">
			<label class="layui-form-label">同步到分站</label>
			<div class="layui-input-inline" style="width: auto;">
				<input type="checkbox" name="push_to_site" lay-filter="push_to_site" lay-text="是|否" lay-skin="switch">
			</div>
			<div class="layui-form-mid layui-word-aux" style="display: none;">如果采集过该商品则同步该数据</div>
		</div>
		{/if}
		{else /}
		<div class="layui-form-item">
			<label class="layui-form-label"></label>
			<div class="layui-input-block" style="color: #ff6600;">
				说明：修改产品在主站审核之前，分站将按修改前的产品信息进行销售。
			</div>
		</div>
		{/if}
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_goods">保存数据</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
</form>	
<script src="/static/um/umeditor.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/um/lang/zh-cn/zh-cn.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/js/goods/drag.js" type="text/javascript" charset="utf-8"></script>
<script>
	// 赋值
	var goods_sign = "{$goods_sign}";
	var goods_form_value = {$data};
	var category_select_uri = "{:url('Category/ajaxCategory')}";
	var brand_select_uri = "{:url('Brand/ajaxList')}";
	var sale_uri = "{:url('Sale/formTpl',array('goods_sign'=>$goods_sign))}";
	var um = UM.getEditor('goods_content{$goods_sign}');
	var chk_goods_model_uri = "{:url('Goods/chkModel')}";
	var goods_form_url = "{:url('goods/tplForm')}";
	var site_data_url = "{:url('goods/siteData')}";
	var push_henan_url = "{:url('goods/pushHenanPrice')}";
	um.ready(function(){
		if(goods_form_value.goods_content != undefined){
			um.setContent(goods_form_value.goods_content);
		}
	})
</script>
<script src="/static/js/goods/goods_tpl_henan.js" type="text/javascript" charset="utf-8"></script>